import java.sql.ResultSet;
import java.sql.SQLException;


public class Zone {
	private int id = -1;
	private String name = null;
	
	public Zone(String n) {
		name = n;
	}
	
	public Zone(ResultSet rs) throws SQLException {
		int id = rs.getInt(ZoneManager.ZONE_ID_COLUMN);
		setId(id);
		String name = rs.getString(ZoneManager.NAME_COLUMN);
		setName(name);
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public int getId() {
		return id;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
}
